
const { db, command, cloud } = require(':share/webServer')
const useMidware = require(':utils/useMidware')

async function viewRoulettes(ctx, next)
{
    let rsp = await db.collection('Roulettes').get()
    ctx.body = rsp.data
}

useMidware.post('/modules/adminPage/manageRoulette/viewRoulettes', viewRoulettes)